<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>{{msg}}</h1>
        <!-- 
            v-if:会创建和销毁节点
            v-show不会创建和销毁节点，会添加display:none
         -->
        <span v-if="bool">
            v-if
        </span>
        <span v-show="bool">
            v-show
        </span>

    </div>
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        let vm=new Vue({
            el:"#app",
            data:{
                mag:"/(ㄒoㄒ)/~~",
                
            }




        })







    </script>

</body>
</html>